<?php 
$blocks = $mvc->getObject('static_block');
?>
<form method="post" action="/manage-static-block.html">
<input type="hidden" name="itemSelect" />
<ul class="viewIList">
	<li class="itemNewB"><a href="new-block.html" title="_i18n{New Block}">_i18n{New Block}</a></li>
	<li class="itemDelete"><button name="delAll" onclick="return confirm('_i18n{You sure you want to delete?}');" >_i18n{Delete}</button></li>
</ul>
<h2>_i18n{Static Block}</h2>
<div class="unitABlock unitABlockLast">
	<table cellpadding="0" cellspacing="0" class="viewList">
		<thead>
			<tr>
				<th class="itemChk"></th>
				<th>_i18n{ID}:</th>
				<th>_i18n{Title}:</th>
			</tr>
		</thead>
		<tbody>
<?php 	if (count($blocks)>0 && $blocks!=NULL){
			 foreach($blocks as $key => $block){ ?>
				<tr>
					<td><input type="checkbox" class="inpChk" name="chkM" value="<?php echo $block[StaticBlockService::ID]; ?>" /></td>
					<td><?php echo $block[StaticBlockService::ID] ?></td>
					<td><a class="linkTr" href="edit-block.html?id=<?php echo $block[StaticBlockService::ID]; ?>"><?php echo $block[StaticBlockService::BLOCK_TITLE] ?></a></td>
				</tr>
<?php } ?>
<?php		}else {?>
			<tr class="unitNoData">
				<td colspan="5">_i18n{No Static Blocks}</td>
			</tr>
<?php	} ?>
		</tbody>
	</table>
</div>
</form>